package com.ruoyi.finance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.finance.mapper.CusDebtMapper;
import com.ruoyi.system.api.domain.finance.CusDebt;
import com.ruoyi.finance.service.ICusDebtService;

/**
 * 客户预付预收Service业务层处理
 * 
 * @author lmj
 * @date 2024-11-07
 */
@Service
public class CusDebtServiceImpl implements ICusDebtService 
{
    @Autowired
    private CusDebtMapper cusDebtMapper;

    /**
     * 查询客户预付预收
     * 
     * @param id 客户预付预收主键
     * @return 客户预付预收
     */
    @Override
    public CusDebt selectCusDebtById(Integer id)
    {
        return cusDebtMapper.selectCusDebtById(id);
    }

    /**
     * 查询客户预付预收列表
     * 
     * @param cusDebt 客户预付预收
     * @return 客户预付预收
     */
    @Override
    public List<CusDebt> selectCusDebtList(CusDebt cusDebt)
    {
        return cusDebtMapper.selectCusDebtList(cusDebt);
    }

    /**
     * 新增客户预付预收
     * 
     * @param cusDebt 客户预付预收
     * @return 结果
     */
    @Override
    public int insertCusDebt(CusDebt cusDebt)
    {
        return cusDebtMapper.insertCusDebt(cusDebt);
    }

    /**
     * 修改客户预付预收
     * 
     * @param cusDebt 客户预付预收
     * @return 结果
     */
    @Override
    public int updateCusDebt(CusDebt cusDebt)
    {
        return cusDebtMapper.updateCusDebt(cusDebt);
    }

    /**
     * 批量删除客户预付预收
     * 
     * @param ids 需要删除的客户预付预收主键
     * @return 结果
     */
    @Override
    public int deleteCusDebtByIds(Integer[] ids)
    {
        return cusDebtMapper.deleteCusDebtByIds(ids);
    }

    /**
     * 删除客户预付预收信息
     * 
     * @param id 客户预付预收主键
     * @return 结果
     */
    @Override
    public int deleteCusDebtById(Integer id)
    {
        return cusDebtMapper.deleteCusDebtById(id);
    }
}
